
import com.znyj.servlet.entity.FactoryEntity;
import com.znyj.servlet.utilsTool.CommonTool;

import java.util.regex.Pattern;


/**
 * Created by gaoliwei02 on 17/7/8.
 */

public class testuse {

    public static Pattern level1 = Pattern.compile("^/device_control/single\\w*|" +
            "^/online_check/\\w*|" +
            "^/task_check/\\w*");

    public static Pattern level2 = Pattern.compile("^/device_control/\\d{15}|" +
            "^/device_control/\\w*|" +
            "^/online_check/\\w*|" +
            "^/system_param/\\w*|" +
            "^/task_check/\\w*");

    public static Pattern level3 = Pattern.compile("^*");

    public static String str = "/device_control/868575020842623";
    public static String str1 = "/device_control/single";
    public static String str2 = "/online_check/get_list";
    public static String str3 = "/task_check/get_list";
    public static String str4 = "/eeee/get_list";

    public static void main(String[] args) throws InterruptedException {
        //Matcher test = level1.matcher(str1);
        //boolean b= test.find();
        //System.out.print("--------: "+b);


        FactoryEntity factoryEntity = new FactoryEntity();
        factoryEntity.setDeviceType("1.CDB");
        factoryEntity.setCommType("1.GPRS");
        factoryEntity.setCountry("1.china");
        factoryEntity.setIotId("1.YX510");
        factoryEntity.setMcuId("1.MCS52");
        factoryEntity.setQamId("1.TESTV1.1");
        factoryEntity.setPcbId("1.CDB2017-07-20");
        factoryEntity.setMcuSv("1.V1.1");
        factoryEntity.setFactory("1.shenzhen");
        factoryEntity.setImei("862991419823775");

        CommonTool.createDeviceId(factoryEntity);
    }
}
